home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2635 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.9 KB  |  51 lines

  1. Newsgroups: comp.lang.c++
  2. Path: news3.noc.netcom.net!zdc!zippo!usenet
  3. From: Jim McFarland <jgm6@orkand.em.cdc.gov>
  4. Subject: Re: Request Help with Borland C++ 4.0
  5. Content-Type: text/plain; charset=us-ascii
  6. Sender: usenet@news.zippo.com
  7. Content-Transfer-Encoding: 7bit
  8. Nntp-Posting-Host: 158.111.166.77
  9. Organization: The Orkand Corporation
  10. Message-ID: <DLDqw0.1CF@news.zippo.com>
  11. References: <Pine.BSD/.3.91.960112094150.10777A-100000@daffy.bgcc.com>
  12. X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
  13. Mime-Version: 1.0
  14. Date: Thu, 18 Jan 1996 13:59:59 GMT
  15.  
  16. "Donald C. Bennett, Jr" <bennett@bgcc.com> wrote:
  17. >Help!!  
  18. >
  19. >When I build my project files I receive the following linker
  20. >error:  
  21. >
  22. >Linking stream.exe:  
  23. >Linker Warning: No module definition file specified: using defaults 
  24. >Linker Error: Undefined symbol OwlMain(int,charfar*far*) in library file 
  25. >F:\BC4\LIB\owlwi.lib in module winmain 
  26. >
  27. >I am not concerned with the warning but I cannot solve the error 
  28. >problem.  Drive F: is the CDROM so I could not have currupted the file. 
  29. This error does not mean that the file it mentions is corrupted, it menas 
  30. that the file calls a function that does not exist.  In this case it is 
  31. OwlMain() which you must supply (I don't use OWL, but I use other 
  32. frameworks and am making an educated guess) in your own code.
  33.  
  34. >
  35. >If I build this exe as a project I receive the same error referring to an 
  36. >undefined WinMain. Please help. 
  37.  
  38. Yes, this is the same basic problem.  Windows programs need a WinMain(). 
  39.  When using a framework such as OwlMain() you don't supply WinMain, the 
  40. framework does - instead you will have to supply the framework defined 
  41. main function.  If you have a main() function in your program, then you 
  42. need to rename it to the appropriate name, depending on the framework you 
  43. are using.  My advice is to use your manuals and on-line help.  You could 
  44. have figured this out by searching on "OwlMain" or "WinMain" in the 
  45. on-line help.
  46.  
  47. Jim
  48.  
  49.  
  50.  
  51.